package org.company.earth.thread;


import org.company.earth.service.ITaskService;

/**
 * CountDownLatch Runnable程序
 * @author hucw
 *
 */
public class MyRunnable implements Runnable{
    
    private ITaskService task;
    
    public MyRunnable(ITaskService task) {
        this.task = task;
    }
    
    @Override
    public void run() {
        task.execute();
    }
}
